package design;

import java.util.List;

import demo.wrapper.FatRma;

/**
 * Created by zhangyanfei on 2019/7/8.
 *
 * @author zhangyanfei
 * @date 2019/07/08
 */
public class ProductInfoWrapper4 extends AbstractWrapper {
    @Override
    public Scope getScope() {
        return Scope.PRODUCT_INFO;
    }

    @Override
    List<FatRma> doWrapper(List<FatRma> fatRmas) {
        System.out.println("加载商品信息");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        FatRma fatRma = new FatRma();
        fatRmas.add(fatRma);
        return fatRmas;
    }
}
